package com.valuedaas.schoolsafety.job.sys;

import cn.hutool.core.date.DateTime;
import com.mongodb.Block;
import com.mongodb.client.FindIterable;
import com.mongodb.client.model.Filters;
import com.mongodb.client.model.Projections;
import com.valuedaas.schoolsafety.common.annotation.QuartzJobRegister;
import me.chanjar.weixin.common.api.WxConsts;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.mp.api.WxMpService;
import me.chanjar.weixin.mp.bean.kefu.WxMpKefuMessage;
import org.apache.commons.lang3.StringUtils;
import org.bson.Document;
import org.bson.conversions.Bson;
import org.quartz.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
@PersistJobDataAfterExecution
@DisallowConcurrentExecution
@QuartzJobRegister(cron = "1 * * * * ?") // 每天早上7点执行
public class TestJob implements Job {

    static final Logger LOG = LoggerFactory.getLogger(TestJob.class);

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        System.out.println("我是每分钟执行的JOB！！！....");
    }

}

